package com.xunjing.order.config.sharding;

import lombok.Data;
import org.apache.shardingsphere.core.rule.TableRule;
import java.util.Set;

/**
 * @Author ZYT
 * @Date 2024-03-29 18:12
 * @Version 1.0
 * @Describe
 */
@Data
public class BaseShardingAlgorithm {
    /**
     * 数据库内所有表
     */
    private Set<String> tables;

    /**
     * 数据节点名称
     */
    private String nodeName;

    /**
     * 逻辑表名
     */
    private String logicTable;

    /**
     * 表的权限缓存
     */
    private TableRule tableRule;

    protected Set<String> getTables() {
        return tables;
    }
}


